/*
 * Create in 2013-4-20 下午2:46:07.
 */
package kit4j.app.notepad.command;

import kit4j.app.notepad.factory.NotepadFactory;
import kit4j.app.notepad.ui.window.Notepad;
import kit4j.common.command.FullCommand;

/**
 * 
 * @author MiniKnife
 *
 */
public class ShowAllNotepadCommand implements FullCommand {

	/**
	 * @see kit4j.common.command.RedoableCommand#redo()
	 */
	@Override
	public void redo() throws Exception {
		execute();
	}

	/**
	 * @see kit4j.common.command.Command#execute()
	 */
	@Override
	public void execute() throws Exception {
		for (Notepad n : NotepadFactory.getInstance().getShowingNotepadList()) {
			n.setVisible(true);
		}
	}

	/**
	 * @see kit4j.common.command.UndoableCommand#undo()
	 */
	@Override
	public void undo() throws Exception {
	}

}
